package com.example.exam.pojo.vo.QuestionVO;

import com.example.exam.tools.JsonPage;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class QuestionStandardVO extends JsonPage {
    private Integer id;

    private Integer itemOrder;

    @NotNull
    private Integer questionType;
    @NotNull
    private Integer subjectId;

    private Integer level;

    private Integer score;

    @Range(min = 1, max = 50, message = "请选择题目难度")
    private Integer difficult;

    private String correct;

    @NotBlank
    private String questionAnalyze;


    private List<String> correctArray;

    private Integer infoTextContentId;

    //匹配t_question表中的info_text_content_id所对应的t_text_content表中的content
    private  String content;

    @NotBlank
    private String titleContent;

    @Valid
    private List<QuestionEditItemVO> questionItemObjects;

    private Integer createUser;

    private Integer status;

    private String createTime;

    private Boolean deleted;

}
